//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.wsd.smartcarwasher.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.Collections;
import java.util.List;

@ApiModel("运营商")
public class Partner {
    @ApiModelProperty("运营商id")
    private Integer id;
    @ApiModelProperty("姓名")
    private String realname;
    @ApiModelProperty("手机号码")
    private String cellphone;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("身份证")
    private String authcode;
    @ApiModelProperty("备注")
    private String addition;
    @ApiModelProperty("机器名")
    private String machineName;
    private String salt;
    @ApiModelProperty("银行卡")
    private String bankcard;
    @ApiModelProperty("账户余额")
    private BigDecimal account;
    @ApiModelProperty("提现总额")
    private BigDecimal profit;
    @ApiModelProperty("登录名")
    private String username;
    //是否是商家端超级管理员
    private int is_super;
    private int is_dataer;
    private int major_account;

    public int getMajor_account() {
        return major_account;
    }

    public void setMajor_account(int major_account) {
        this.major_account = major_account;
    }

    public int getIs_dataer() {
        return is_dataer;
    }

    public void setIs_dataer(int is_dataer) {
        this.is_dataer = is_dataer;
    }

    public int getIs_super() {
        return is_super;
    }

    public void setIs_super(int is_super) {
        this.is_super = is_super;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    private String openId;
    private List<Machine> machines;
    private List<Store> stores;

    public List<Store> getStores() {
        return stores;
    }

    public void setStores(List<Store> stores) {
        this.stores = stores;
    }

    @Override
    public String toString() {
        return "Partner{" +
                "id=" + id +
                ", realname='" + realname + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", password='" + password + '\'' +
                ", authcode='" + authcode + '\'' +
                ", addition='" + addition + '\'' +
                ", machineName='" + machineName + '\'' +
                ", salt='" + salt + '\'' +
                ", bankcard='" + bankcard + '\'' +
                ", account=" + account +
                ", profit=" + profit +
                ", username='" + username + '\'' +
                ", openId='" + openId + '\'' +
                '}';
    }

    /**
     * 设备计数
     */
    private int machineCount;


    public int getMachineCount() {
        return machineCount;
    }

    public void setMachineCount(int machineCount) {
        this.machineCount = machineCount;
    }

    public Partner() {
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRealname() {
        return this.realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getCellphone() {
        return this.cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAuthcode() {
        return this.authcode;
    }

    public void setAuthcode(String authcode) {
        this.authcode = authcode;
    }

    public String getAddition() {
        return this.addition;
    }

    public void setAddition(String addition) {
        this.addition = addition;
    }

    public String getMachineName() {
        return this.machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getSalt() {
        return this.salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getBankcard() {
        return this.bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public BigDecimal getAccount() {
        return this.account;
    }

    public void setAccount(BigDecimal account) {
        this.account = account;
    }

    public BigDecimal getProfit() {
        return this.profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public String getOpenId() {
        return this.openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public List<Machine> getMachines() {
        return this.machines != null ? this.machines : Collections.emptyList();
    }

    public void setMachines(List<Machine> machines) {
        this.machines = machines;
    }

    public boolean isFieldsValid() {
        return StringUtils.isNotBlank(this.realname) && StringUtils.isNotBlank(this.password);
    }
}



/*
package com.wsd.smartcarwasher.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.List;
@ApiModel(value = "运营商")
public class Partner {
    @ApiModelProperty(value = "运营商id")
    private Integer id;
    @ApiModelProperty(value = "姓名")
    private String realname;
    @ApiModelProperty(value = "手机号码")
    private String cellphone;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "身份证")
    private String authcode;
    @ApiModelProperty(value = "备注")
    private String addition;
    @ApiModelProperty(value = "机器名")
    private String machineName;
    private String salt;
    @ApiModelProperty(value = "银行卡")
    private String bankcard;
    @ApiModelProperty(value = "账户余额")
    private BigDecimal account;
    @ApiModelProperty(value = "提现总额")
    private BigDecimal profit;
    private String openId;

    private List<Machine> machines;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAuthcode() {
        return authcode;
    }

    public void setAuthcode(String authcode) {
        this.authcode = authcode;
    }

    public String getAddition() {
        return addition;
    }

    public void setAddition(String addition) {
        this.addition = addition;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public BigDecimal getAccount() {
        return account;
    }

    public void setAccount(BigDecimal account) {
        this.account = account;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public List<Machine> getMachines() {
        return machines;
    }

    public void setMachines(List<Machine> machines) {
        this.machines = machines;
    }

    public boolean isFieldsValid() {
        return StringUtils.isNotBlank(realname) && StringUtils.isNotBlank(password);
    }
}
*/
